package com.coffee.netty;


import com.coffee.netty.config.ServerProperties;

/**
 * @author songkui
 * @since 2024/7/30
 */
public interface RemotingServer {

    boolean start(ServerProperties serverProperties);

    void stop();

    /**
     *  park Decoder  encoder
     * @param rpcCodec RpcCodec
     */
    void registerRpcCodec(RpcCodec rpcCodec);

    /**
     * Message handler
     * @param commandHandler CommandHandler
     */
    void registerCommandHandler(CommandHandler commandHandler);

}
